<?php 
if (!empty($list['text'])) :
foreach ($list['text'] as $k=>$v):?>
<li>
	<div class="g-img"><a target="_blank" href="<?php echo yii::$app->urlManager->createUrl(["goodsdetail/index",'product_id'=>$v['defaultsku']])?>"><img data-original="<?php echo \Yii::$app->params['goods_image_url'] . str_replace('./upload/', 'upload/', $v['image']['pic']);?>"></a></div>
	<div class="g-title"><a target="_blank" href="<?php echo yii::$app->urlManager->createUrl(["goodsdetail/index",'product_id'=>$v['defaultsku']])?>"><?php echo $v['goods_name']?></a></div>
	<div class="g-price">
		<?php if(!empty($v['type'] != 1)):?>
		<span><em class="p-key">价&nbsp;&nbsp;&nbsp;格：</em><em class="p-value"><?php echo $v['sale_price'];?></em></span>
	<?php endif;?>
	<?php if(!empty($v['type'] != 2)):?>
		<span><em class="p-key">试用价：</em><em class="p-value"><?php echo $v['try_price'];?></em></span>
	<?php endif;?>
	</div>
	<div class="g-bottom">
		<span class="comment"><i class="icon icon-comment"></i><?php echo $v['count'];?>评论</span>
		<a target="_blank" href="<?php echo yii::$app->urlManager->createUrl(["goodsdetail/index",'product_id'=>$v['defaultsku']])?>" class="more">查看详情</a>
	</div>
</li>
<?php 
endforeach;
endif;?>